/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.oracleandsxnd.erp.xsd.entity;

import com.oracleandsxnd.erp.common.persistence.DataEntity;

/**
 * 销售单Entity
 * @author 销售单
 * @version 2019-12-16
 */
public class XsglSaleDetail extends DataEntity<XsglSaleDetail> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 商品编码
	private String name;		// 商品名称
	private int amount;		// 数量
	private double price;		// 单价
	private double totalprice;		// 总价格
	private double cost;		// 成本
	private double profit;		// 毛利
	private XsglSale sale;		// 销售单id 父类
	private String companyname;		// 往来单位
	private String company;		// 往来单位

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
	public String getCompanyname() {
		return companyname;
	}

	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}
	public XsglSaleDetail() {
		super();
	}

	public XsglSaleDetail(String id){
		super(id);
	}

	public XsglSaleDetail(XsglSale sale){
		this.sale = sale;
	}

	public double getCost() {
		return cost;
	}

	public void setCost(double cost) {
		this.cost = cost;
	}

	public double getProfit() {
		return profit;
	}

	public void setProfit(double profit) {
		this.profit = profit;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}
	
	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}
	
	public double getTotalprice() {
		return totalprice;
	}

	public void setTotalprice(double totalprice) {
		this.totalprice = totalprice;
	}
	
	public XsglSale getSale() {
		return sale;
	}

	public void setSale(XsglSale sale) {
		this.sale = sale;
	}
	
}